<template>
  <view>
    <view class="components-title">
      <view class="components-title-t">gg-draw-qrcode</view>
      <view class="components-title-d">二维码</view>
    </view>
    <gg-nav-group label="我是一个 二维码">
      <gg-draw-qrcode :val="val" :onval="true" :icon="isIcon?icon:''" :loadMake="true" />
    </gg-nav-group>
    <gg-input-text v-model="val" label="二维码内容" />
    <gg-switch v-model="isIcon" label="是否添加icon" labelWidth="120" />
  </view>
</template>
<script>
export default {
  data() {
    return {
      val: 'https://ggui.cn/',
      //   icon: 'http://gg-ui.oss-cn-hangzhou.aliyuncs.com/images/logo.png',
      icon: '/static/logo.png',
      isIcon: true
    };
  },
  methods: {

  }
}
</script>
